/*
 * fastCalculate.h
 *
 *  Created on: Jun 9, 2011
 *      Author: skyang
 */

#ifndef FASTCALCULATE_H_
#define FASTCALCULATE_H_

#include "InputArray.h"
#include "declareVariables.h"
#define windowSize 500
#define threadsPerBlock 512
#define EDGE 5
#define sizeAlpha 80
#define FACTOR 10000
void CUDAfastAEPD_DistWrapper (double *data, double *param, double *dev_alpha, double *dev_lnGammaofAlpha, double *dev_deviationMatrix);
void CUDAfastAEPD_DistWrapper (int tableLength, ForexTable * TablePointer, double *param, double *dev_alpha, double *dev_lnGammaofAlpha, double *dev_deviationMatrix);
void localAEPD_Fit(double * x, int N, double * params);
void structureAEPD_Fit(int tableLength, ForexTable * TablePointer,  int N,  double * params);
#endif /* FASTCALCULATE_H_ */
